package com.qfedu.meidijiaju.mapper;

import com.qfedu.meidijiaju.entity.FaxiantieziYxy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 发现帖子 Mapper 接口
 * </p>
 *
 * @author meidimeiju
 * @since 2022-10-03
 */
public interface FaxiantieziYxyMapper extends BaseMapper<FaxiantieziYxy> {

    List<FaxiantieziYxy> allFaXianTieZiByFaXianId(String faxiantypeId);

    List<FaxiantieziYxy> allFaXianTieZiByUserId(String userId);


    FaxiantieziYxy findFaXianTieZiByTieZiId(int tieziId);

    int addFaXianTieZi(FaxiantieziYxy faxiantieziYxy);

    List<FaxiantieziYxy> findFaXianTieZiByLike(String contentOrTitle);

    int updateFaXianTieZiByPingLunNum(@Param("pinglunshu") int pinglunshu,@Param("tieziId") int tieziId);

    List<FaxiantieziYxy> findFaXianTieZiByHuaTiId(int huaTiId);
}
